<?php
if(!isset($param[0]))throw new Exception('Not enought parameter');
if(!isset($state[APPLICATION]))throw new Exception("Select APPLICATION first!\nUse 'select-app' command");
$fn='apps/'.$state[APPLICATION].'/module.'.$param[0].'.php';
if(!file_exists($fn))throw new Exception("Module does not exist.\nUse 'create-module' command first!");
$state[MODULE]=$param[0];
echo "ok.";
